package com.cgq.pro.entity;

import java.util.HashMap;
import java.util.Map;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.cgq.base.entity.Base;

@Entity
@Table(name="fd_policy")
public class Policy extends Base {
	/**序号*/
	private String id;
	/**编号*/
	private String num;
	/**内容*/
	private String content;
	/**类别，0为国内政策，1为地方政策*/
	private int type;
	/**状态*/
	private int status;
	
	@Id
	@Column(name = "Pid")
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	@Column
	public String getNum() {
		return num;
	}
	public void setNum(String num) {
		this.num = num;
	}
	@Column(name="content",length=4000)
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	@Column
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	@Column
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	
	
	@Override
	public Map<String, Object> toMap() {
		Map<String, Object> map=new HashMap<String, Object>();
		map.put("id", this.id);
		map.put("num", num);
		map.put("name", this.name);
		map.put("remark", this.remark);
		map.put("content", this.content);
		return map;
	}

}
